function [ nextPoint ] = extrapolate( input_args, dt)
%EXTRAPOLATENEXTWAYPOINT calculates the next points by extrapolateing the
% given ones
%   simply spline extrapolate the given data to the next point
len = size(input_args, 1);
dim = size(input_args,2);
nextPoint = zeros(1, dim);
for i = 1:dim
    e = interp1(1:len, input_args(:,i), len+dt, 'spline', 'extrap');
    nextPoint(:,i) = e;
end
end
